<script type="text/javascript" src="<{$smarty.const._DOMAIN_SC_CDN_}>/upload/zx/sc/js/admin/operate.js"></script>
<style type="text/css">
/*
 * 注：该部分应该重做, CSS 不应该直接写在TPL里面！
 */
.abstract { padding: 0; background: #EEE; margin: 1em 0; border: 1px solid #CCD; }
.abstract h2 { background-color: #CCD; color: white; }
.abstract h2 span { color: navy; }
.abstract .content { padding: 1em; color: #444; line-height: 2em; }
</style>

	<div class="box02 abstract">
		<h2 class="title01"><span>汇总信息</span></h2>
		<div class="content">
		<ul>
			<li>
			今日新增促销：<{$data.goods.new_goods.count}>
			<a href="#new_goods">查</a>
			</li>
			<li>
			今日促销调整：<{$data.goods.update_goods.count}>
			<a href="#update_goods">查</a>
			</li>
			<li>
			今日注册用户：<{$data.user.new_user}>
			<a href="#new_user">查</a>
			</li>
			<li>今日注册商家：<{$data.user.new_merchant}></li>
			<li>
			<a href="#goods_top50">商品流量top50</a>
			</li>
			<li>
			<a href="#shop_upv">店铺流量统计</a>
			</li>
			<li>
			<a href="#track_user_behavior">用户行为统计</a>
			</li>
		</ul>
		</div>
	</div>
	<div class="box02">
		<div class="box02_1">
			<a name="track_user_behavior"></a>
			今日用户行为
			<div id="user_behavior">
			<{php}>
			$url = "/welcome/widget/today_behavior";
			//echo Request::factory($url)->execute()->body();
			<{/php}>
			</div>
			<!-- 今日新增与修改商品 -->
			<{include file="admin/statis/today/goods.tpl"}>
			<!-- 今日商品流量Top50  -->
			<{include file="admin/statis/today/goods_top50_upv.tpl"}>
			<!-- 今日商铺流量       -->
			<{include file="admin/statis/today/shop_upv.tpl"}>
			<!-- 今日注册用户商户   -->
			<{include file="admin/statis/today/user.tpl"}>
		</div>
	</div>
<script type="text/javascript">
var today_mgr = new TodayDataManager ();
today_mgr.sync_data_from_widget('paid_orders_div', 'paid_orders_info', 'real');
today_mgr.sync_data_from_widget('finished_orders_div', 'finished_orders_info', 'real');
today_mgr.sync_data_from_widget('refund_orders_div', 'refund_orders_info', 'refund');
</script>
